﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Astrid_Desktop
{
    public class UrlParameter : IComparable
    {
        public string Key { get; set; }
        public string Value { get; set; }

        public int CompareTo(object obj)
        {
            try
            {
                UrlParameter parameter = (UrlParameter)obj;

                int compare = this.Key.CompareTo(parameter.Key);

                if (compare == 0)
                {
                    compare = this.Value.CompareTo(parameter.Value);
                }

                return compare;

            }
            catch (Exception ex)
            {
                return 1;
            }

        }
    }
}
